<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<?php
session_start();
	$_SESSION['hallpass'] = true;

include "authentication.php";
require_once "security.php";


$_SESSION['referer'] = "login";
setcookie ("wt_auth", "", time() - 3600);
	//$auth = new Authentication();
	//$auth->login_auth();
	$secret = spoof_prevention();
?>
</head>
<body>

<form name="login" action="login.php" method="post">
    Username: <input type="text" name="username" /><br>
    Password: <input type="password" name="password" /><br>
    <input type="hidden" name="secret" value="<? echo $secret; ?>" />
    <input type="checkbox" name="cookie" value="cookie"  /> save cookie?<br />
    <input type="submit" value="Login" />
</form>
</body>
</html>